//
//  E7Country.h
//  EndlessBattle
//
//  Created by cc on 12-3-17.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef EndlessBattle_E7County_h
#define EndlessBattle_E7County_h

#include "E7GameDefine.h"

#include "E7Cell.h"
#include "E7Town.h"

class CE7Country
{
public:
    CE7Country() ;
    ~CE7Country() ;

    bool InitData(int nID) ;
    bool AddTown(int nID) ;    // town id.
    bool DelTown(int nID) ;    // town id.
    bool CreateTown() ;

    bool AddCell(int nID) ;    // cell id.
    bool DelCell(int nID) ;    // cell id.

    int  GetID() { return m_nID ; }

private:
    void FindCellToTown(CE7Cell* pCell, CE7Town* pTown) ;

public:
    TOWN_ID_LIST    m_listTownIDs ; // town list.
    CELL_ID_LIST    m_listCellIDs ; // all this country id cells.

private:
    int             m_nID ;      // id.
};

#endif





















